package JavaEE初阶;

public class Demo10 {
    public static void main(String[] args) {
        Object locker = new Object();
        Thread t = new Thread(() ->{
           synchronized (locker){
               System.out.println("hello");
           }
        });
        t.start();
    }
}
